<?php
/*
-----------------------------------------------------------------
Вывод низа сайта 
-----------------------------------------------------------------
*/	

$filename =  $_SERVER['DOCUMENT_ROOT']. '/theme/' . $userskin . '/end.php';

if (file_exists($filename)) 
 { 
	require_once ($rootpath . 'theme/' . $userskin . '/end.php'); 
 } 
else 
 { 
	require_once ($rootpath . 'pages/end.php'); 
 }

?>